#include <iostream>

using namespace std;

//基类
class Shape
{
	public:
		void setWidth(int w)
		{
			width = w;
		}
		void setHeight(int h)
		{
			height = h;
		}

	protected:
		int width;
		int height;
};

//派生类
class Rectagel : public Shape
{
	public:
		int getArea()
		{
			return (width * height);
		}
};

int main(void)
{
	Rectagel Rect;

	Rect.setWidth(5);
	Rect.setHeight(7);
	cout << "area:" << Rect.getArea() << endl;

	return 0;
}
